<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //声明常量
        const SCHOOl = 'const 常量'
        // console.log(SCHOOl);


        //1. 一定要赋初值
        // const lili; //'const' declarations must be initialized.

        // 2.一般常量使用大写(潜规则)
        // const a = 100

        //3.常量的值不能修改
        // SCHOOL = '1234'


        // 4.块级作用域
        // {
        //     const A = 1
        // }
        // console.log(A);


        //5.可以修改由const定义的常量对象中的属性和数组
        const TEAM = ['123', '456']
        TEAM.push('789')
        console.log(TEAM);

    </script>
</body>

</html>